home *** CD-ROM | disk | FTP | other *** search
- #
- # This script was written by Renaud Deraison <deraison@cvs.nessus.org>
- #
- # See the Nessus Scripts License for details
- #
-
- if(description)
- {
- script_id(10268);
- script_version ("$Revision: 1.22 $");
- script_cve_id("CVE-1999-1085");
-
- name["english"] = "SSH Insertion Attack";
- name["francais"] = "Attaque contre SSH par insertion";
- script_name(english:name["english"], francais:name["francais"]);
-
- desc["english"] = "
- You are running a version of SSH which is
- older than (or as old as) version 1.2.23.
- This version is vulnerable to a known plain
- text attack, which may allow an attacker to
- insert encrypted packets in the client - server
- stream that will be deciphered by the server,
- thus allowing the attacker to execute arbitrary
- commands on the remote server
-
- Solution :
- Upgrade to version 1.2.25 of SSH which solves this problem.
-
- More information:
- http://www.core-sdi.com/english/ssh/
-
- Risk factor : High";
-
-
- desc["francais"] = "
- Vous faites tourner une version de ssh
- plus ancienne ou Θgale α la version 1.2.23.
-
- Cette version est vulnΘrable α une 'known
- plaintext attack' qui peut permettre α un
- pirate d'insΘrer des paquets chiffrΘs dans
- le flux ssh qui seront dΘchiffrΘs du cotΘ
- du serveur, permettant ainsi au pirate
- d'executer des commandes arbitraires
- sur la machine distante.
-
- Solution :
- mettez α jour ssh. La version 1.2.25
- et les versions ultΘrieures corrigent ce problΦme.
-
-
- Plus d'informations :
- http://www.core-sdi.com/english/ssh/
-
- Facteur de risque : ElevΘ";
-
-
- script_description(english:desc["english"], francais:desc["francais"]);
-
- summary["english"] = "Checks for the remote SSH version";
- summary["francais"] = "VΘrifie la version de SSH";
- script_summary(english:summary["english"], francais:summary["francais"]);
-
- script_category(ACT_GATHER_INFO);
-
-
- script_copyright(english:"This script is Copyright (C) 1999 Renaud Deraison",
- francais:"Ce script est Copyright (C) 1999 Renaud Deraison");
- family["english"] = "Gain a shell remotely";
- family["francais"] = "Obtenir un shell α distance";
- script_family(english:family["english"], francais:family["francais"]);
- script_dependencie("ssh_detect.nasl");
- script_require_ports("Services/ssh", 22);
- exit(0);
- }
-
- #
- # The script code starts here
- #
-
-
- port = get_kb_item("Services/ssh");
- if(!port)port = 22;
-
- banner = get_kb_item("SSH/banner/" + port );
- if ( ! banner ) exit(0);
-
-
- if ( "openssh" >< tolower(banner) ) exit(0);
-
- if(ereg(pattern:"^SSH-.*-1\.2(\.([0-9]|1[0-9]|2[0123])|)$", string:b))
- security_warning(port);
-